package com.kxc.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 设备原始数据
 */
@Entity(name = "originaldata")
public class OriginalData extends BaseEntity{
	
	@Column(name="dev_num", nullable = false)
    private String devNum;
    /**所属监测项  */
	@Column
    private String moniItem;
	@Column
    private String data;
	
	@Column
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	//@Temporal(TemporalType.DATE)
	private Date collectTime;
	
	@Column
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	//@Temporal(TemporalType.DATE)
    private Date uploadTime;
	
	@Column
    private String remarks;

	public String getDevNum() {
		return devNum;
	}

	public void setDevNum(String devNum) {
		this.devNum = devNum;
	}

	public String getMoniItem() {
		return moniItem;
	}

	public void setMoniItem(String moniItem) {
		this.moniItem = moniItem;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public Date getCollectTime() {
		return collectTime;
	}

	public void setCollectTime(Date collectTime) {
		this.collectTime = collectTime;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public OriginalData(String devNum, String moniItem, String data, Date collectTime, Date uploadTime,
			String remarks) {
		super();
		this.devNum = devNum;
		this.moniItem = moniItem;
		this.data = data;
		this.collectTime = collectTime;
		this.uploadTime = uploadTime;
		this.remarks = remarks;
	}
}
